<?php

App::uses('AppController', 'Controller');

/**
 * BannersPosicoes Controller
 *
 * @property BannersPosicao $BannersPosicao
 * @property PaginatorComponent $Paginator
 */
class BannersHasPaginasController extends BannersAppController {

    /**
     * Components
     *
     * @var array
     */
    public $components = array('Paginator');


    /**
     * index method
     *
     * @return void
     */
    public function index() {
        $options = array(
            'conditions' => $this->passedArgs,
            'limit' => 1000,
            'group' => 'BannersHasPagina.banners_id',
        );
        debug($options);
        $this->paginate = $options;
        $BannersHasPagina = $this->paginate('BannersHasPagina');
        return $BannersHasPagina;
    }

}
